﻿@model IEnumerable<StorageLocation>
@if ((Model != null) && (Model.Count() > 0))
{ 
<table class="neat">
    <caption>@Model.Count() search results </caption>
    <thead>
        <tr>
            <th>@Html.DisplayNameFor(model => model.Id)</th>
            <th>@Html.DisplayNameFor(model => model.Code)</th>
            <th>@Html.DisplayNameFor(model => model.Name)</th>
            <th>@Html.DisplayNameFor(model => model.Description)</th>
            <th>@Html.DisplayNameFor(model => model.CreatedDateTime)</th>
            <th>&nbsp;</th>
        </tr>
    </thead>
    <tbody>
@foreach (StorageLocation storageLocation in Model)
{
        <tr>
            <td>@Html.DisplayFor(model => storageLocation.Id)</td>
            <td>@Html.DisplayFor(model => storageLocation.Code)</td>
            <td>@Html.DisplayFor(model => storageLocation.Name)</td>
            <td>@Html.DisplayFor(model => storageLocation.Description)</td>
            <td>@Html.DisplayFor(model => storageLocation.CreatedDateTime)</td>
            <td>
                <a href="@Url.Action("Edit", new { id = storageLocation.Id })">
                    <img src= "@Url.Content("~/Content/images/famfamfam/silk/application_form_edit.png")" alt="edit" title="edit" /></a>
                <a href="@Url.Action("Delete", new { id = storageLocation.Id })">
                    <img src= "@Url.Content("~/Content/images/famfamfam/silk/application_form_delete.png")" alt="delete" title="delete" /></a>
            </td>
        </tr>
}
    </tbody>
</table>
}
else
{
    <p>No records of storage location type found.</p>
}